package com.xuexie.mr;

import org.apache.hadoop.io.Text;

public class MyPartitioner extends org.apache.hadoop.mapreduce.lib.partition.HashPartitioner<MyBean, Text>{

	public int getPartition(MyBean key, Text value, int numReduceTasks) {
		return key.getYear()-1949;
	}
}
